package com.demo.service.his;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Component;

/**
 * 推荐用药
 * @author K
 */
@Slf4j
@Component
public class RecommendService {

    public void exec(DelegateExecution execution) {
        String diagnosis = execution.getVariable("diagnosis", String.class);
        log.info("诊断结果：{}，推荐用药：999", diagnosis);
        execution.setVariable("medicine", "999");
    }
}
